<template>
    <div>
        <div class="yonghubox">
            <div class="gerenzhongxing">个人中心</div>
            <div class="fanhui">
                <van-icon name="arrow-left" color="green" size="20" @click="onClickLeft" />
            </div>

            <div class="touxiangbox">
                <div class="touxiang">用户头像</div>
                <div>
                    <span class="haoma">188***8888</span>
                </div>
                <div>
                    <van-icon name="arrow" size="30" @click="onClickRight" />
                </div>
            </div>
        </div>
    </div>
</template>


<script>
    import Vue from "vue";
    import { Icon } from "vant";
    
    export default {
        data() {
            return {

            };
        },
        components: {},
        computed: {},
        methods: {
            // 个人中心的跳转
            onClickRight() {
                console.log(222222222);
                this.$router.push("/zhongXin")
            },
            // 返回首页
            onClickLeft() {
                console.log(11111111);
            }
        },
    };
</script>
<style lang="less" scoped>
    .gerenzhongxing {
        text-align: center;
        padding-top: 20px;
    }

    .yonghubox {
        width: 100%;
        height: 200px;
        background-color: rgba(hsl(125, 73%, 3%), 0.5);
        opacity: 0.5;
    }

    .haoma {
        font-size: 20px;
        color: white;
    }

    .touxiang {
        width: 100px;
        height: 100px;
        background: white;
        text-align: center;
        line-height: 100px;
    }

    .touxiangbox {
        display: flex;
        justify-content: space-around;
        align-items: center;
        margin-top: 25px;
    }

    .xiajiantou {
        font-size: 30px;
    }

    .fanhui {
        margin: -10px 16px;
    }
</style>